package com.pilates.comparator;

import java.util.Comparator;

import com.pilates.financeiro.entity.FinanceiroPeriodo;

public class FinanceiroPeriodoComparator implements Comparator<FinanceiroPeriodo> {

	public int compare(FinanceiroPeriodo finPer1, FinanceiroPeriodo finPer2) {
		if(finPer1 == finPer2){
			return 0;
		}
		
		
		return finPer1.getDataVct().compareTo(finPer2.getDataVct());
		
		
	}

}
